<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-3.1.0.js" ></script>
	</head>
	<body>
		<div  id="hc" style="height: 80px;width: 80px;">草拟吗速度抽奖</div>
		<a id="start">开始</a>
		<a id="stop">结束</a>
		<img src="img/688833193547009084.jpg"/ alt="hah ">
		<script>
			
			console.log($("#hc").html())
			
			var a=[1,5,6,8,9,55,666,999]
			var hh=null;	
			
					var start= document.getElementById("start");
					var stop= document.getElementById("stop");
					
				
				
				
				start.onclick=function(){
					clearInterval(hh)
					hh=setInterval(function(){
						
						var cnm=Math.floor(Math.random()*a.length)
						var hc= document.getElementById("hc");
								hc.innerHTML=a[cnm];
					},50);
					this.style.color="red";
					
				}
				stop.onclick=function(){

					clearInterval(hh);
					var start= document.getElementById("start");
					start.style.color="#000000";
				}
				
				document.onkeyup=function(){
					/*event= event || window.event;*/
					console.log(event.keyCode);
				}
				
					
					
					function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}

	console.log(GetQueryString("oo"))
					
		
		
		
		</script>
	</body>
</html>
0